﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Cart_itemBLL
/// </summary>
public class Cart_itemBLL
{
    
    public int id { get; set; }
    public DateTime add_on { get; set; }
    public int cart_id { get; set; }
    public int item_id { get; set; }
    public string itemName { get; set; }
    public int quantity { get; set; }
    public int price { get; set; }
    public int cash_total { get; set; }
    public string name_cat { get; set; }

	public Cart_itemBLL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public Cart_itemBLL(int id, DateTime add_on, int cart_id, int item_id,string itemName, int quanlity,int price, int cash_total)
    {
        this.id = id;
        this.add_on = add_on;
        this.cart_id = cart_id;
        this.item_id = item_id;
        this.itemName = itemName;
        this.quantity = quanlity;
        this.price = price;
        this.cash_total = cash_total;
    }

    public List<Cart_itemBLL> getCartItems(int cart_id)
    {
        return Cart_itemDAL.getCartItems(cart_id);
    }
    public int totalCount(DateTime from, DateTime to)
    {
        return Cart_itemDAL.totalCount(from, to);
    }
}